package ch.pizzapp.kurier.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class CategoryData implements Parcelable {

	@JsonProperty("catID")
	String catID;
	@JsonProperty("title")
	String title;
	@JsonProperty("icon")
	String icon;
	@JsonProperty("categorytype")
	String categorytype;

	public String getCatID() {
		return this.catID;
	}

	public void setCatID(String catID) {
		this.catID = catID;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getIcon() {
		return this.icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getCategorytype() {
		return this.categorytype;
	}

	public void setCategorytype(String categorytype) {
		this.categorytype = categorytype;
	}

	protected CategoryData(Parcel in) {
		catID = in.readString();
		title = in.readString();
		icon = in.readString();
		categorytype = in.readString();
	}

	public CategoryData() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(catID);
		dest.writeString(title);
		dest.writeString(icon);
		dest.writeString(categorytype);
	}

	public static final Parcelable.Creator<CategoryData> CREATOR = new Parcelable.Creator<CategoryData>() {
		public CategoryData createFromParcel(Parcel in) {
			return new CategoryData(in);
		}

		public CategoryData[] newArray(int size) {
			return new CategoryData[size];
		}
	};
}